<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!-- 订单页面 -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<jsp:include page="head.jsp" />
<body class="page-body">
<jsp:include page="nav.jsp" />

                    
                        
          <div class="page-title">
          <div class="title-env">
            <h1  class="title">订单管理</h1>
            <p class="description">此处可以管理用户的订单</p>
          </div>
            <div class="breadcrumb-env">
            
               <ol class="breadcrumb bc-1">
                 <li>
                  <a href="#"><i class="fa-home"></i>首页</a>
                </li>
                <li class="active">
                      <strong>订单管理</strong>
                  </li>
              </ol>
                  
             </div>
           </div>

            <div  class="row">
                <div class="col-sm-12">
                    
                  <div class="panel panel-default">
                    <div  class="panel-heading">
                      <h3 align="center" class="panel-title">订单信息</h3>
                      
                      <div class="panel-options">
                         </div>
                    </div>

                    <div class="panel-body">
                <p align="center" style="color:green;">${requestScope.Msg }</p>
                      <div class="table-responsive">
                      
                                  <table cellspacing="0" class="table table-small-font table-bordered table-striped">
                                    <!-- 表头 -->
                                      <thead align="center">
                                          <tr align="center">
                                            <th align="center">订单编号</th>
                                            <th>提交用户</th>
                                            <th >订单总价</th>
                                            <th>提交时间</th>
                                            <th >订单状态</th>
                                            <th>操作订单</th>
                                           
                                          </tr>
                                       <%-- 
                                            <c:if test="${sessionScope.dd_list==null }">
                                            <tr>
                                                  <td  colspan="6"></td>
                                            </tr>
                                          <tr>
                                          
                                    <td colspan="6">暂时没有用户提交的订单哦！</td>
                                   </tr></c:if>
                                   --%> 
                                      </thead>
                                
                                      <tbody>
                                <!-- cforeach遍历list -->                   
                <c:forEach items="${requestScope.buylist }" var="i">
                                   
                                      <tr>
                                        <td>${i.bh }</td>
                                        <td>${i.username }</td>
                                        <td>${i.price }元</td>
                                        <td>${i.time }</td>
                                        <td>${i.status }</td>
                                  
              <td  align="center"><a class="btn btn-xs btn-success" href="${pageContext.request.contextPath }/dealDd?bh=${i.bh}">处理</a>&nbsp;
                                        <a href="javascript:if(confirm('你确定要删除 ${i.bh } 这个订单吗？该操作不可撤回！')){window.location.href='${pageContext.request.contextPath }/removeDdServelt?bh=${i.bh }'}" 
                                            class="btn btn-xs btn-danger">删除</a></td>
                                       
                                
                                       
                                        </tr>
                               
                </c:forEach>                     
                                  </tbody>
                    
            </table></div></div></div></div></div>
           
<jsp:include page="copy.jsp" />